package com.wjs.CarolSecKill.service.imp;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wjs.CarolSecKill.mapper.GoodsMapper;
import com.wjs.CarolSecKill.pojo.Goods;
import com.wjs.CarolSecKill.service.IGoodsService;
import com.wjs.CarolSecKill.vo.GoodsVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 商品表
 *
 * @author wjs
 * @date 2022-09-03
 */
@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements IGoodsService {

    @Override
    public List<GoodsVo> findGoodsVo() {
       return this.baseMapper.findGoodsVo();
    }

    @Override
    public GoodsVo findGoodsVoById(Long id) {
        return this.baseMapper.findGoodsVoById(id);
    }
}
